Feedback
- Not a good idea to create a single “full” dataset. This is the STATA way of working. Instead follow a more deliberate approach of only bringing in variables that you are interested into a particular dataset.
- Use the
head() command to only print a few of the rows instead of all of them.
- Use a tabbed layout
# {.tabset .tabset-fade .tabset-pills}
- Only keep chunks of code that are necessary for the analysis
- Avoid using pipes for single function calls
df %>% str() for instance.
- Remove redundant axis titles from charts
- Look
forcats package to reorder factors and generate labels for values
- Use
fig.width and fig.height chunk options to set plot sizes
- Describe the insight from each chart
broom
write_csv()
Checking
group nest